package com.px;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
//使用Feign
@EnableFeignClients
//发现服务
@EnableDiscoveryClient
//开始hystrix的自动配置
@EnableHystrix
public class PxGoodsConsumerApplication {

    public static void main(String[] args) {
        SpringApplication.run(PxGoodsConsumerApplication.class, args);
    }

}
